home *** CD-ROM | disk | FTP | other *** search
/ Packard Bell - Internet on a CD / internet on a cd.cdr / Internet / sites / Clementine_NASA / clemdsrc.hqx / concat_vol_file.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-24  |  931 b   |  40 lines

  1. /*******************************************************************************
  2. * concat_vol_file subroutine - Adapted from MPW toolkit C examples 
  3. *
  4. * subroutine description
  5. *
  6. *        Concatenate the volume name and the file name
  7. *
  8. * argument descriptions
  9. *
  10. *        argument        use
  11. *        --------        ---
  12. *
  13. *        filenam            Name resulting from the concatenation of the volume
  14. *                        name and the file name
  15. *
  16. *        vol                Volume name
  17. *
  18. *        file            File name
  19. *
  20. ********************************************************************************/
  21.  
  22. /********************
  23. * Standard C includes 
  24. *********************/
  25. #include <stdio.h>
  26. #include <stdlib.h>
  27. #include <string.h>
  28.  
  29. /***************************
  30. * Macintosh toolbox includes
  31. ****************************/
  32. #include <string.h>
  33. #include <packages.h>
  34.  
  35. void concat_vol_file (char *filenam,StringPtr vol,StringPtr file)
  36. {
  37.   strcat(filenam,p2cstr(vol));
  38.   strcat(filenam,":");
  39.   strcat(filenam,p2cstr(file));
  40. }